<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/8/14 0014
  Time: 上午 11:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="d" uri="http://dgg.net/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>资质信息列表</title>
    <%@ include file="../../../header.jsp" %>
</head>
<body class="body-main">
<div class="titleSearch" id="search">
    <d:hasUrlAuth authCode="ZZSC_ZS_SYB">
    <div class="layui-inline">
        <label>所属事业部：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="signOrgId" id="affiliationSyb">
                <option value="">请选择</option>
            </select>
        </div>
    </div>
    </d:hasUrlAuth>
    <%--<div class="layui-inline">--%>
    <div class="layui-inline">
        <label>资质类型：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateType" id="certificateType"
                    onchange="loadCertificateType('190px','#certificateType','${generalType}',1,'#certificateName',1,'#certificateLevel')">
                <option value="">请选择</option>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>资质名称：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateName" id="certificateName">
                <option value="">请选择</option>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>资质等级：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateLevel">
                <option value="">请选择</option>
                <c:forEach items="${certificateLevels}" var="level">
                    <option value="${level.code}">${level.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>超期状态：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="overdueStatus">
                <option value="">全部</option>
                <c:forEach items="${overdueStatuss}" var="overdueStatus">
                    <option value="${overdueStatus.code}">${overdueStatus.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>资质状态：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateStatus">
                <option value="">全部</option>
                <c:forEach items="${certificateStatus}" var="status">
                    <option value="${status.code}" <c:if test="${reserve == status.code}">selected</c:if>>${status.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>地区：</label>
        <div class="layui-input-inline">
            <div class="bus-plugIn" id="certificateArea">
                <input type="hidden" name="certificateAreaId" class="plug-in-msg"/>
                <input type="hidden" name="certificateArea" class="plug-in-code"/>
                <input type="text" readonly placeholder="请选择" class="chose-plugIn layui-input"
                       id="certificateAreaChange">
                <div class="bus-picker">
                    <div class="bus-picker-tab">
                        <a href="javascript:void(0);" class="active">请选择</a>
                    </div>
                    <div class="bus-picker-content"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-inline">
        <label>适用范围：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="applicationScope">
                <option value="">全部</option>
                <c:forEach items="${applicationScopes}" var="scope">
                    <option value="${scope.code}" <c:if test="${aScopes == scope.code}">selected</c:if>>${scope.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>关键字：</label>
        <div class="layui-input-inline">
            <input type="text" name="conditions" class="input-style win250" placeholder="所属企业/资质编号"/>
        </div>
    </div>
    <div class="layui-inline">
        <button class="layui-btn layui-btn-mini layui-btn-normal" onclick="reloadTable()">搜索</button>
        <button class="layui-btn layui-btn-mini layui-btn-primary" onclick="cleanSearch()">清空</button>
    </div>
    <%--</div>--%>
    <div style="display: none;">
        <input id="generalType" value="${generalType}"/>
    </div>
    <div style="display: none;">
        <input id="systemDate" value="${systemDate}"/>
        <input id="certificateCode" value="${certificateCode}"/>
    </div>
    <div class="table-conter">
        <a href="javascript:void(0)" class="layui-btn layui-btn-mini" onclick="edit()">新增资质</a>
        <a href="javascript:void(0)" class="layui-btn layui-btn-mini" onclick="derivedTable()">导出</a>
    </div>
    <d:hasUrlAuth authCode="ZZSC_ADMIN_EDIT">
    <input type="hidden" name="adminEdit" value="1">
    </d:hasUrlAuth>
    <table id="myTable" class="cell-border crm-table">
    </table>
    <%@ include file="../../../footer.jsp" %>
    <script src="${rootUrl}/static/js/zzsc/common/functionalTool.js?v=${version}"></script>
    <script src="${rootUrl}/static/js/zzsc/common/verificationTool.js?v=${version}"></script>
    <script src="${rootUrl}/static/js/zzsc/common/dealDataTool.js?v=${version}"></script>
    <script src="${rootUrl}/static/js/zzsc/credential/qualification/index.js?v=${version}"></script>
    <script src="${rootUrl}/static/js/zzsc/credential/credentailCommon/credentailCommon.js?v=${version}"></script>
    <script>
        $(function () {
            //异步加载
            Plug.plug_ins(
                "get",
                "${cmsBaseUrl}/api/cms/tree_book/v1/get_tree_book_list.do?code=2147483647&type=2&level=1",
                "#certificateArea",
                '请选择地区',
                function () {
                },
                true, '2147483647'
            );

        })
    </script>
</body>
</html>
